package edu.zut.hb.ambition.report.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import edu.zut.hb.ambition.base.domain.Excel;

import edu.zut.hb.ambition.base.domain.BaseEntity;
public class Report extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @Column(name = "reportid")
    private String reportid;

    @Column(name = "reportname")
    private String reportname;

    /** 性别 */
    @Column(name = "sex")
    private String sex;

    /** 年龄 */
    @Column(name = "age")
    private Long age;

    /** 科室 */
    @Column(name = "department")
    private String department;

    /** 医生 */
    @Column(name = "doctor")
    private String doctor;

    /** 挂号 */
    @Column(name = "type")
    private String type;

    /** 挂号费 */
    @Column(name = "price")
    private BigDecimal price;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Column(name = "time", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 操作员 */
    @Column(name = "users")
    private String users;

    /** 状态 */
    @Column(name = "state")
    private String state;

    /** 患者电话 */
    @Column(name = "phone")
    private String phone;

    /** 卡号 */
    @Column(name = "carid")
    private Long carid;

    /** 患者状态 */
    @Column(name = "zhuan")
    private String zhuan;

    public void setReportid(Long reportid) 
    {
        this.reportid = reportid;
    }

    public Long getReportid() 
    {
        return reportid;
    }
    public void setReportname(String reportname) 
    {
        this.reportname = reportname;
    }

    public String getReportname() 
    {
        return reportname;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }
    public void setDoctor(String doctor) 
    {
        this.doctor = doctor;
    }

    public String getDoctor() 
    {
        return doctor;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setUsers(String users) 
    {
        this.users = users;
    }

    public String getUsers() 
    {
        return users;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setCarid(Long carid) 
    {
        this.carid = carid;
    }

    public Long getCarid() 
    {
        return carid;
    }
    public void setZhuan(String zhuan) 
    {
        this.zhuan = zhuan;
    }

    public String getZhuan() 
    {
        return zhuan;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("reportid", getReportid())
            .append("reportname", getReportname())
            .append("sex", getSex())
            .append("age", getAge())
            .append("department", getDepartment())
            .append("doctor", getDoctor())
            .append("type", getType())
            .append("price", getPrice())
            .append("time", getTime())
            .append("users", getUsers())
            .append("state", getState())
            .append("phone", getPhone())
            .append("carid", getCarid())
            .append("zhuan", getZhuan())
            .toString();
    }
}
